package com.sparrow.rpc.socket.msg.vo;

import com.sparrow.rpc.domain.RpcNode;

public class RpcNodeVo {
    private String id;
    private String ip;
    private int port;

    public static RpcNodeVo of(RpcNode node) {
        RpcNodeVo vo = new RpcNodeVo();
        vo.setId(node.getId());
        vo.setIp(node.getIp());
        vo.setPort(node.getPort());
        return vo;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
